import request from "@/utils/request";

export function AddUser(params) {
	//用户管理新增
	return request({
		url: "/sysUserManage",
		method: "POST",
		params,
	});
}
export function UpdateUserID(params) {
	//用户管理主键查询修改信息
	return request({
		url: "/sysUserManage/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateUser(params) {
	//用户管理主键查询修改信息
	return request({
		url: "/sysUserManage",
		method: "PUT",
		params,
	});
}
export function DelUser(params) {
	//用户管理主键查询修改信息
	return request({
		url: "/sysUserManage",
		method: "DELETE",
		params,
	});
}
export function AddMember(params) {
	//新增会员信息
	return request({
		url: "/memberManage/insert",
		method: "POST",
		params,
	});
}
export function UpdateMemberID(params) {
	//会员管理主键查询修改信息
	return request({
		url: "/memberManage/selectOne",
		method: "GET",
		params,
	});
}
export function AddKeFu(params) {
	//添加客服修改记录
	return request({
		url: "/keFu/updateInfo",
		method: "POST",
		params,
	});
}
export function UpdateMember(params) {
	//会员管理主键查询修改信息
	return request({
		url: "/memberManage/update",
		method: "PUT",
		params,
	});
}
export function DelMember(params) {
	//会员管理主键查询修改信息
	return request({
		url: "/memberManage/delete",
		method: "DELETE",
		params,
	});
}
export function AddUserAddress(params) {
	//新增用户地址
	return request({
		url: "/crmUserAddress",
		method: "POST",
		params,
	});
}
export function UpdateUserAddressID(params) {
	//根据主键ID查询数据
	return request({
		url: "/crmUserAddress/selectOne",
		method: "Get",
		params,
	});
}

export function getCompanyAddress(params) {
	//查询自提地址
	return request({
		url: "/crmCompanyAddress/getCompanyAddress",
		method: "Get",
		params,
	});
}

export function crmCompanyAddressUpdate(params) {
	//修改自提地址
	return request({
		url: "/crmCompanyAddress/update",
		method: "PUT",
		params,
	});
}
export function UpdateUserAddress(params) {
	//修改地址数据
	return request({
		url: "/crmUserAddress",
		method: "PUT",
		params,
	});
}
export function DelUserAddress(params) {
	//删除地址数据
	return request({
		url: "/crmUserAddress",
		method: "DELETE",
		params,
	});
}
export function AddMemberLevelMan(params) {
	//新增团队等级
	return request({
		url: "/memberLevel/addNew",
		method: "POST",
		params,
	});
}
export function UpdateMemberLevID(params) {
	//根据主键ID查询数据
	return request({
		url: "/memberLevel/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateMemberLev(params) {
	//根据主键ID修改数据
	return request({
		url: "/memberLevel/update",
		method: "PUT",
		params,
	});
}
export function DelMemberLev(params) {
	//删除团队等级
	return request({
		url: "/memberLevel/delete",
		method: "DELETE",
		params,
	});
}
export function AddStoreProduct(params) {
	//新增商品信息
	return request({
		url: "/crmStoreProduct/insert",
		method: "POST",
		params,
	});
}
export function UpdateStoreProductID(params) {
	//根据主键ID查询商品信息
	return request({
		url: "/crmStoreProduct/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateStoreProduct(params) {
	//根据主键ID修改商品信息
	return request({
		url: "/crmStoreProduct/update",
		method: "PUT",
		params,
	});
}
export function DelStoreProduct(params) {
	//删除商品信息
	return request({
		url: "/crmStoreProduct",
		method: "DELETE",
		params,
	});
}
export function AddStoreCategory(params) {
	//新增商品分类信息
	return request({
		url: "/crmStoreCategory",
		method: "POST",
		params,
	});
}
export function UpdateStoreCategoryID(params) {
	//根据主键ID查询商品分类信息
	return request({
		url: "/crmStoreCategory/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateStoreCategory(params) {
	//根据主键ID修改商品分类信息
	return request({
		url: "/crmStoreCategory",
		method: "PUT",
		params,
	});
}
export function DelStoreCategory(params) {
	//删除商品分类信息
	return request({
		url: "/crmStoreCategory",
		method: "DELETE",
		params,
	});
}
export function DelOrder(params) {
	//删除订单信息
	return request({
		url: "/crmOrder",
		method: "DELETE",
		params,
	});
}
export function dingBack(params) {
	//退回订单信息
	return request({
		url: "/crm/crmOrderExit",
		method: "DELETE",
		params,
	});
}
export function AddBusiness(params) {
	//新增商家信息
	return request({
		url: "/crmBusiness",
		method: "POST",
		params,
	});
}
export function UpdateBusinessID(params) {
	//根据主键ID查询商家信息
	return request({
		url: "/crmBusiness/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateBusiness(params) {
	//根据主键ID修改商家信息
	return request({
		url: "/crmBusiness",
		method: "PUT",
		params,
	});
}
export function DelBusiness(params) {
	//删除商家信息
	return request({
		url: "/crmBusiness",
		method: "DELETE",
		params,
	});
}
export function AddBrands(params) {
	//新增品牌信息
	return request({
		url: "/crmBrands",
		method: "POST",
		params,
	});
}
export function UpdateBrandsID(params) {
	//根据主键ID查询品牌信息
	return request({
		url: "/crmBrands/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateBrands(params) {
	//根据主键ID查询品牌信息
	return request({
		url: "/crmBrands",
		method: "PUT",
		params,
	});
}
export function DelBrands(params) {
	//删除品牌信息
	return request({
		url: "/crmBrands",
		method: "DELETE",
		params,
	});
}
export function AddBanner(params) {
	//新增轮播图
	return request({
		url: "/crmBanner",
		method: "POST",
		params,
	});
}
export function UpdateBannerID(params) {
	//根据主键ID查询轮播图
	return request({
		url: "/crmBanner/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateBanner(params) {
	//根据主键ID修改轮播图
	return request({
		url: "/crmBanner",
		method: "PUT",
		params,
	});
}
export function DelBanner(params) {
	//删除轮播图信息
	return request({
		url: "/crmBanner",
		method: "DELETE",
		params,
	});
}
export function AddCrmMessage(params) {
	//新增公告
	return request({
		url: "/crmMessage",
		method: "POST",
		params,
	});
}
export function UpdateCrmMessageID(params) {
	//根据主键ID查询公告
	return request({
		url: "/crmMessage/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateCrmMessage(params) {
	//根据主键ID修改公告
	return request({
		url: "/crmMessage",
		method: "PUT",
		params,
	});
}
export function DelCrmMessage(params) {
	//删除公告信息
	return request({
		url: "/crmMessage",
		method: "DELETE",
		params,
	});
}
export function UpdateBankID(params) {
	//根据主键ID查询对公转账信息
	return request({
		url: "/companyBank/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateBank(params) {
	//根据主键ID修改对公转账信息
	return request({
		url: "/companyBank/update",
		method: "POST",
		params,
	});
}

export function newCompanyBank(params) {
	//新增对公转账信息
	return request({
		url: "/companyBank/newCompanyBank",
		method: "POST",
		params,
	});
}

export function companyBankDelete(params) {
	//删除对公转账信息
	return request({
		url: "/companyBank/delete",
		method: "GET",
		params,
	});
}

export function DelOrderComment(params) {
	//删除评价
	return request({
		url: "/crmOrderComment",
		method: "DELETE",
		params,
	});
}
export function SignAllocationID(params) {
	//根据主键ID查询日期信息
	return request({
		url: "/signInAllocationManage/selectOne",
		method: "GET",
		params,
	});
}
export function SignAllocation(params) {
	//根据主键ID修改日期信息
	return request({
		url: "/signInAllocationManage",
		method: "PUT",
		params,
	});
}
export function AddRoleMAnage(params) {
	//新增角色
	return request({
		url: "/sysRoleManage",
		method: "POST",
		params,
	});
}
export function UpdateRoleMAnageID(params) {
	//根据主键ID查询角色
	return request({
		url: "/sysRoleManage/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateRoleMAnage(params) {
	//根据主键ID修改角色
	return request({
		url: "/sysRoleManage",
		method: "PUT",
		params,
	});
}
export function DelRoleMAnage(params) {
	//删除角色
	return request({
		url: "/sysRoleManage",
		method: "DELETE",
		params,
	});
}
export function AddMenuMa(params) {
	//新增菜单
	return request({
		url: "/sysMenuManage",
		method: "POST",
		params,
	});
}
export function UpdateMenuMaID(params) {
	//根据ID查询菜单
	return request({
		url: "/sysMenuManage/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateMenuMa(params) {
	//根据ID修改菜单
	return request({
		url: "/sysMenuManage",
		method: "PUT",
		params,
	});
}
export function DelMenuMa(params) {
	//删除菜单
	return request({
		url: "/sysMenuManage",
		method: "DELETE",
		params,
	});
}
export function UpdateVariableID(params) {
	//根据ID查询菜单
	return request({
		url: "/sysVariableMange/selectOne",
		method: "GET",
		params,
	});
}
export function UpdateVariable(params) {
	//根据ID修改菜单
	return request({
		url: "/sysVariableMange",
		method: "PUT",
		params,
	});
}
export function AddFavorites(params) {
	//新增商品收藏信息
	return request({
		url: "/crmFavorites",
		method: "POST",
		params,
	});
}
export function DelFavorites(params) {
	//商品收藏信息
	return request({
		url: "/crmFavorites",
		method: "DELETE",
		params,
	});
}
export function DelStoreCart(params) {
	//删除购物车信息
	return request({
		url: "/crmStoreCart",
		method: "DELETE",
		params,
	});
}
export function SearchRelation(params) {
	//会员关系
	return request({
		url: "/memberManage/getMembershipChildrenVo",
		method: "GET",
		params,
	});
}
export function SearchRelation1(params) {
	//会员关系1
	return request({
		url: "/huiYuan/superiorInfo",
		method: "GET",
		params,
	});
}
export function SearchOrderDeliverGoods(params) {
	//确认发货
	return request({
		url: "/crmOrder/crmOrderDeliverGoods",
		method: "GET",
		params,
	});
}
export function crmOrderDeliverGoodsQiCai(params) {
	//确认商城商品发货
	return request({
		url: "/crmOrder/crmOrderDeliverGoodsQiCai",
		method: "GET",
		params,
	});
}

export function getMemberBank(params) {
	//查询转账信息
	return request({
		url: "/memberManage/getMemberBank",
		method: "GET",
		params,
	});
}
export function SearchStoreManage(params) {
	//云店管理查询
	return request({
		url: "/salesRoom",
		method: "GET",
		params,
	});
}
export function SearchLocation(params) {
	//云店地址查询
	return request({
		url: "/area/selectArea",
		method: "GET",
		params,
	});
}
export function AddStoreManage(params) {
	//云店管理新增门店
	return request({
		url: "/salesRoom",
		method: "POST",
		params,
	});
}
export function updateStoreManageID(params) {
	//ID查询云店信息
	return request({
		url: "/salesRoom/selectOne",
		method: "GET",
		params,
	});
}
export function updateStoreManage(params) {
	//ID查询修改云店信息
	return request({
		url: "/salesRoom",
		method: "PUT",
		params,
	});
}
export function DelStoreManage(params) {
	//删除云店
	return request({
		url: "/salesRoom",
		method: "DELETE",
		params,
	});
}


export function postUpload(data) {
	//上传图片
	return request({
		url: "/common/upload",
		method: "POST",
		data,
	});
}


export function apkUpload(data) {
	//上传APK文件
	return request({
		url: "/common/apkUpload",
		method: "POST",
		data,
	});
}

export function apkInsert(params) {
	//上传APK文件
	return request({
		url: "/common/apkInsert",
		method: "POST",
		params,
	});
}
export function AddShop(params) {
	//新增商城商品信息
	return request({
		url: "/insert",
		method: "POST",
		params,
	});
}
export function DelShopProduct(params) {
	//删除商城商品信息
	return request({
		url: "/delete",
		method: "DELETE",
		params,
	});
}
export function UpdateGetInfo(params) {
	//根据ID查询商城商品信息
	return request({
		url: "/getInfo",
		method: "GET",
		params,
	});
}
export function UpdateShopProduct(params) {
	//根据ID修改商城商品信息
	return request({
		url: "/update",
		method: "PUT",
		params,
	});
}
